import React from 'react';
import CCard from './Preview';
import { ProductDetails } from "../index";

interface AppPageProps {
  productDetails: ProductDetails;
}

const AppPage: React.FC<AppPageProps> = ({ productDetails }) => {
  return (
    <div style={{
      display: 'flex',
      justifyContent: 'center'
    }}>
      <CCard productDetails={productDetails} />
    </div>
  );
};

export default AppPage;